﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using XNA_2DFramwork;

namespace City_War_Game
{
    public class PlayerControler : KeyBoardControl
    {
        private Player _player;
        public PlayerControler(Game game,Player player) : base(game)
        {
        }

        private float increaseX;
        private float increaseY;
        public void Control (KeyboardState input)
        {
            input = Keyboard.GetState();
            if (input.IsKeyDown(Keys.A))
            {
                _player.Move(_player.Position.X - 5,0);
            }
            if (input.IsKeyDown(Keys.S))
            {
                _player.Move(0, _player.Position.X - 5);
            }
            if (input.IsKeyDown(Keys.D))
            {
                
            }
        }
    }
}
